package healththink

class Address {
	String address
	String address2
	String lga
	String state
	
	static belongsTo = [User, Facility]
	
	static constraints = {
	 address(size:1..512, blank: false)
	 address2(size:1..512, nullable:true)
	 lga(size:1..128, blank: false)
	 state(size:1..128, blank: false)
	}
        
    String toString(){
        address + " " + address2 + " " + lga + " " + state 
    }
}